import java.util.Queue;

/**
 * @Author @fiber-cloud
 * @Date 2025/8/3 11:05
 */
public class Main {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        //入栈
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        stack.push(6);
        stack.push(7);

        //出栈
        int x1 = stack.pop();
        System.out.println(x1);
        int x2 = stack.pop();
        System.out.println(x2);


        //int x3 = (int) stack.peek();
        //System.out.println(x3);

        int x4 = stack.pop();
        System.out.println(x4);


        MyQueue queue = new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        int x5 = queue.poll();
        System.out.println(x5);
        int x6 = queue.peek();
        System.out.println(x6);
        System.out.println(queue.size());
        System.out.println(queue.isEmpty());
    }

}
